#ifndef HH_MAIN_H
#define HH_MAIN_H

#include <stdio.h>
//#include <string.h>

typedef int   lint;
typedef short sint;
typedef unsigned int ulint;   
typedef unsigned short usint;
typedef signed char schar;
typedef unsigned char byte;
typedef unsigned short word;
typedef unsigned int  dword;
typedef int  hh_bool;

typedef long long int lint64;
typedef unsigned long long int ulint64;


extern void exit(int);
extern void err_none();
#define HH_ASSERT(EXP)\
	if (!(EXP))\
	{\
        fprintf(stderr, "assert failed at file :%s line:%d\n", __FILE__, __LINE__);\
		err_none();\
        exit(-1);\
	}

#ifndef TRUE
#define TRUE 1
#endif

#ifndef FALSE
#define FALSE 0
#endif

#define APP_DEBUG_PRINT printf


#if defined(__FREEBSD__)
#define PTRACE_ATTACH PT_ATTACH
#define PTRACE_DETACH PT_DETACH
#define PTRACE_PEEKDATA PT_READ_D
#define PTRACE_POKEDATA PT_WRITE_D
#endif


#endif
